import { IntersectionType, OmitType, PartialType } from "@nestjs/swagger";

import { QueryDto } from "@/core/dto/query.dto";

import { CreateCategoryDto } from "./create-category.dto";

export class QueryCategoryDto extends IntersectionType(
    QueryDto,
    PartialType(OmitType(CreateCategoryDto, ["description", "sort"] as const))
) {}
